package com.loyal.loyalerp.humenresource.categoryDetail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.loyal.loyalerp.humenresource.categoryDetail.entity.Gy_ConfigDetail;
import com.loyal.loyalerp.humenresource.categoryDetail.mapper.Gy_ConfigDetailMapper;
import com.loyal.loyalerp.humenresource.categoryDetail.service.CategoryDetailWriteService;

@Service
public class CategoryDetailWriteServiceImp implements CategoryDetailWriteService{

	@Autowired
	private 
	Gy_ConfigDetailMapper mapper;
	@Override
	public int updateDetail(Gy_ConfigDetail configDetail) {
		return mapper.updateByPrimaryKey(configDetail);
	}
	@Override
	public int insertDetail(Gy_ConfigDetail configDetail) {
		return mapper.insert(configDetail);
	}
	@Override
	public int deleteDetail(int id) {
		return mapper.deleteByPrimaryKey(id);
	}
	@Override
	public int batchDelete(List<Integer> list) {
		return mapper.batchDeleteDetail(list);
	}

}
